# blog/urls.py

from django.urls import path
from . import views

urlpatterns = [
    path('', views.PostListView.as_view(), name='index'),
    path('post/<int:pk>/', views.PostDetailView.as_view(), name='post_detail'),
    path('category/<slug:slug>/', views.category_posts, name='category_posts'),
    path('post/<int:pk>/comment/', views.add_comment, name='add_comment'),
]